<template>
	<view class="container">
		<view class="list-wrapper">
			<view class="item-wrapper" v-for="(item,index) in list" :key="index" @click="toDetail(item)">
				<view class="cell row-between">
					<view class="row-center">
						<u--image :showLoading="true" src="/static/small_car.png" width="48rpx"
							height="34rpx"></u--image>
						<text class="title">{{item.plate}}</text>
					</view>
				</view>
				<view class="cell row-between">
					<view class="row-center">
						<u-icon name="clock" color="#4D4D4D" size="14"></u-icon>
						<text class="label">违停登记时间</text>
					</view>
					<text class="value">{{item.violationTime}}</text>
				</view>
				<view class="cell row-between">
					<view class="row-center">
						<u-icon name="clock" color="#4D4D4D" size="14"></u-icon>
						<text class="label">处置登记时间</text>
					</view>
					<text class="value">{{item.tblViolationHandling && item.tblViolationHandling.handleTime}}</text>

				</view>
				<view class="cell row-between">
					<view class="row-center">
						<u-icon name="account" color="#4D4D4D" size="14"></u-icon>
						<text class="label">登记人</text>
					</view>
					<text class="value">{{item.recorderName}}</text>
				</view>
				<!-- <view class="cell row-between">
					<view class="row-center">
						<u-icon name="clock" color="#4D4D4D" size="14"></u-icon>
						<text class="label">处置状态</text>
					</view>
					<text class="value">{{item.status}}</text>
				</view> -->
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				keyword: '',
			}
		},
		props: {
			list: {
				default: [],
				type: Array
			}
		},
		methods: {
			toDetail(item) {
				this.$commonUtil.redirectTo('/disposal/detail', {
					id: item.id
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.container {
		padding: 0 30rpx;

		.list-wrapper {
			.item-wrapper {
				padding: 20rpx;
				background-color: #fff;
				margin-bottom: 15rpx;

				.cell {
					margin-top: 10rpx;

					&:first-child {
						margin-top: 0;
					}

					.title {
						font-weight: 500;
						font-size: 28rpx;
						color: #3B67A5;
						font-weight: bold;
						margin-left: 10rpx;
					}

					.status {
						font-size: 26rpx;
						color: #A5543B;

					}

					.label {
						font-size: 26rpx;
						color: #666666;
						margin-left: 10rpx;
					}

					.value {
						font-weight: 400;
						font-size: 26rpx;
						color: #000000;
					}
				}
			}
		}
	}
</style>